package com.gxa.modules.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.modules.sys.entity.RestTime;
import com.gxa.modules.sys.mapper.RestTimeMapper;
import com.gxa.modules.sys.service.RestTimeService;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RestTimeServiceImpl extends ServiceImpl<RestTimeMapper, RestTime> implements RestTimeService {

    @Autowired
    private RestTimeMapper restTimeMapper;
    @Override
    public List<RestTime> queryAll() {
        List<RestTime> restTimes = baseMapper.selectList(null);
        return restTimes;
    }

    @Override
    public void updateBusinessTime(String businessStartTime,String businessEndTime) {
        this.restTimeMapper.updateBusinessTime(businessStartTime,businessEndTime);
    }

    @Override
    public void updateAppointmentTime(String appointmentTime) {
        this.restTimeMapper.updateAppointmentTime(appointmentTime);
    }

    @Override
    public void updateClosureTime(String closureStartTime,String closureEndTime) {
        this.restTimeMapper.updateClosureTime(closureStartTime,closureEndTime);
    }
}
